package com.cjh.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    @ExcelIgnore
    private int id;

    @ExcelProperty(value = "姓名")
    private String name;

    @ExcelProperty(value = "头像地址")
    private String image;

    @ExcelProperty(value = "电话")
    private String phone;

    @ExcelProperty(value = "邮箱")
    private String email;

    @ExcelIgnore
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private String createtime;
}
